package com.test.thread;

import java.io.PipedOutputStream;

public class ThreadWrite extends Thread {
	private writeData w;
	private PipedOutputStream out;
	public ThreadWrite(writeData w, PipedOutputStream out) {
		super();
		this.w = w;
		this.out = out;
	}
	@Override
	public void run() {
		w.writeMethod(out);
	}
	
}
